package com.wingsfrog.travel.modules.dao;

import com.wingsfrog.travel.modules.entity.Hint;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by rankin on 16/4/2.
 */
public interface HintDao extends CrudRepository<Hint,Integer> {
    public List<Hint> findByTaskId(Integer taskId);
    public Hint findTop1ByTaskIdOrderByHintLevelDesc(Integer taskId);
}
